import cv2
import imutils


def test():
    #
    src = cv2.imread('test.png')

    # 将图像向右平移25像素，向上平移75像素
    translated = imutils.translate(src, 25, 75)

    cv2.imshow('2', translated)
    cv2.waitKey(0)
    cv2.destroyAllWindows()
